package com.qijian.quality.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.qijian.common.annotation.Excel;
import com.qijian.common.core.domain.BaseEntity;
import com.qijian.tool.domain.Storage;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;

import java.util.List;

/**
 * 管理流程处理意见对象 qm_flowable_result
 *
 * @author qijian
 * @date 2022-04-06
 */
@EqualsAndHashCode(callSuper = true)
@Data
@ToString
@TableName("qm_flowable_result")
public class FlowableResult extends BaseEntity{
    private static final long serialVersionUID = 1L;

    @JsonSerialize(using= ToStringSerializer.class)
    @ApiModelProperty(value = "ID")
    private Long id;

    @Excel(name = "表头ID")
    @JsonSerialize(using= ToStringSerializer.class)
    @ApiModelProperty(value = "表头ID")
    private Long mainId;

    @Excel(name = "顺序")
    @ApiModelProperty(value = "顺序")
    private Integer sort;

    @Excel(name = "结果分类")
    @ApiModelProperty(value = "结果分类")
    private String resultClass;

    @Excel(name = "处理结果")
    @ApiModelProperty(value = "处理结果")
    private String resultContent;

    @TableField(exist = false)
    private List<Storage> files;
}
